/**
 * Copyright &copy; 2017-2020 <a href="http://www.fosung.com/">FosungFrame</a> All rights reserved.
 */
package com.fosung.frame.modules.life.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.fosung.frame.common.persistence.Page;
import com.fosung.frame.common.service.CrudService;
import com.fosung.frame.modules.life.entity.OrganizeLifeType;
import com.fosung.frame.modules.sys.entity.MeetingClassification;
import com.fosung.frame.modules.life.dao.OrganizeLifeTypeDao;

/**
 * 组织生活分类管理Service
 * @author ygl
 * @version 2017-08-30
 */
@Service
@Transactional(readOnly = true)
public class OrganizeLifeTypeService extends CrudService<OrganizeLifeTypeDao, OrganizeLifeType> {

	public OrganizeLifeType get(String id) {
		return super.get(id);
	}
	
	public List<OrganizeLifeType> findList(OrganizeLifeType organizeLifeType) {
		return super.findList(organizeLifeType);
	}
	
	public Page<OrganizeLifeType> findPage(Page<OrganizeLifeType> page, OrganizeLifeType organizeLifeType) {
		return super.findPage(page, organizeLifeType);
	}
	
	@Transactional(readOnly = false)
	public void save(OrganizeLifeType organizeLifeType) {
		super.save(organizeLifeType);
	}
	
	@Transactional(readOnly = false)
	public void delete(OrganizeLifeType organizeLifeType) {
		super.delete(organizeLifeType);
	}

	public void deleteOrganizeLifeType(String orgId) {
		dao.deleteOrganizeLifeType(orgId);
	}

	public Page<OrganizeLifeType> findOrganizeTypeByOrgId(Page<OrganizeLifeType> page, OrganizeLifeType organizeLifeType) {
		page.setList(dao.findOrganizeTypeByOrgId(organizeLifeType));
		return page;
	}
}